#pragma once
#include "const.h"
#include <mysql/jdbc.h>
#include "Singleton.h"
#include "MySQLDao.h"
#include "json.hpp"
using nlohmann::json;

class MySQLMgr : public Singleton<MySQLMgr>
{
    friend class Singleton<MySQLMgr>;
public:
    ~MySQLMgr();
    void test();
    json getShopDatas();
    json getShopDatasByName(const std::string& name);
private:
    MySQLMgr();
    MySQLDao _dao;
};